/*
 * main.cpp
 *
 *  Created on: Oct 1, 2008
 *      Author: tandaica0612
 */
#include <iostream>
#include <exception>
#include <gtkmm.h>
#include <libglademm.h>
#include <libglademm/xml.h>
#include <string>
#include <sqlite3.h>
#include <list>
#include <sstream>
#include "MainWindow.h"
int main(int argc, char *argv[]) {
	if (!Glib::thread_supported())
		Glib::thread_init();
	//
	Glib::RefPtr<Gnome::Glade::Xml> what_a_waste;
	Gtk::Main kit(argc, argv);
	// load the interface
	what_a_waste = Gnome::Glade::Xml::create("testglage.glage");//Load xml giao diện vào
	// Get the main window
	MainWindow* window;
	what_a_waste->get_widget_derived("window1", window);//Lấy nguyên tố cửa sổ tên window_main
	Gtk::Main::run(*window);//Chạy hiện cửa sổ
	//
	return 0;
}

